//
//  MLWBaseViewController.m
//  KITCHEN_STORIES
//
//  Created by dllo on 16/6/6.
//  Copyright © 2016年 MLW. All rights reserved.
//

#import "MLWBaseViewController.h"
#import "EATheme.h"
@interface MLWBaseViewController ()

@end

@implementation MLWBaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.navigationController.navigationBar.translucent = NO;
    
    //设置navigationController的背景颜色:
    self.navigationController.navigationBar.barTintColor = Yellow_Color;
    
    //夜间模式:
    [self.navigationController.navigationBar ea_setThemeContents:^(UIView *currentView, NSString *currentThemeIdentifier) {
        
        if ([currentThemeIdentifier isEqualToString:EAThemeBlack]) {
            
            self.navigationController.navigationBar.barTintColor = [UIColor colorWithRed:0.14 green:0.14 blue:0.14 alpha:1.00];
        }
        else
        {
            self.navigationController.navigationBar.barTintColor = Yellow_Color;
        }
        
    }];
    self.navigationController.navigationBar.barStyle = UIBarStyleBlack;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
